<%@page import="com.slayer.model.LMSBook"%>
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@include file="/html/library/init.jsp"%>
<%
ResultRow row = (ResultRow) 
	request.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
LMSBook book = (LMSBook)row.getObject();
PortletURL editBookURL = renderResponse.createRenderURL();
editBookURL.setParameter("bookId",Long.toString(book.getBookId()));
editBookURL.setParameter("jspPage",MyLibraryConstants.PAGE_UPDATE);
PortletURL viewBookURL = renderResponse.createRenderURL();
PortletURL deleteBookURL =  renderResponse.createActionURL();
PortletURL renderURL =  renderResponse.createRenderURL();
deleteBookURL.setParameter(ActionRequest.ACTION_NAME, MyLibraryConstants.DELETE_BOOK);
deleteBookURL.setParameter("bookId",Long.toString(book.getBookId()));
deleteBookURL.setParameter("renderURL",renderURL.toString());
%>
<liferay-ui:icon-menu>
<liferay-ui:icon image="edit" message="Edit Book" url="<%=editBookURL.toString()%>"/>
<liferay-ui:icon image="view" message="View Detail" url="<%=viewBookURL.toString()%>"/>
<liferay-ui:icon image="delete" message="Delete" url="<%=deleteBookURL.toString()%>"/>
</liferay-ui:icon-menu>